import request from '@/utils/request';


/** 获取所有菜单 */
export async function allMenus() {
    return request({url:'/amis/allMenu',method: 'GET'});
}

/** 获取用户授权菜单 */
export async function getUserMenus() {
    return request({url:'/amis/getSite',method: 'GET'});
}

/** 获取菜单Schema GET */
export async function getMenuSchema(id:string) {
    return request(`/amis/${id}`, {
        method: 'GET'
    });
}
/** 更新Schema GET */
export async function saveSchame(id:string ,data: any) {
    return request(`/amis/${id}`, {
        method: 'POST',
        data:data
    });
}